﻿<div id="pagecontent">

<?php 
	if($this->session->flashdata('message')!='')
	{ 
		
?>
<div id="sponsorAdDiv" style="visibility:hidden">
<table width="305px" height="50px" bgcolor="#FF0000"><tr><td>
<table width="300px" height="45px" bgcolor="#FFFFCC"><tr><td align="center" valign="middle">
<?php echo $this->session->flashdata('message'); ?>
</p>
</td></tr></table></td></tr></table>
</div>
<?php
	}
?>

<div id="listmenu" align="center" style="width:80%; padding-left:100px;"> 
<table width="80%" id="tablesorter-demo" class="tablesorter" border="0" cellpadding="0" cellspacing="1">
  <thead>
  <tr>
    <th align="center" width="70%">Category Name</th>
	<th align="center" width="20%">Action</th>
  </tr>
  </thead>
  <tbody>
   <?php 
				$i=0;
				foreach( $categories as $cate)
				{
					$td_bg=($i%2==0)?"":" background-color:#f0f0f6";
					echo "<tr><td style='padding-left:35px;".$td_bg.";'><p ><span class='nameoftitle'>".$cate['name']."</span></p><div style='padding-left:08px;padding-top:05px;' id='child".$cate['category_id']."'></div></td><td align='center'><a href='".base_url().index_page()."/adminpage/cpanel/show_edit_category/".$cate['category_id']."?height=120&width=600&modal=true'  class='thickbox'>".$this->lang->line('action_edit')."</a></td></tr>";
					//echo "<div id='child".$category_manager[$i][0]."'></div>";
						/*echo "<li><a href='".base_url().$this->lang->line('seo_product')."/".$category_manager[$i][2]."'><span>"
.$category_manager[$i][1]."</span></a></li>";*/
					$i++;
				}
	?> 
  </tbody>
</table>
  </div> <p>&nbsp;</p>
</div>
<script>


function checkvalidate() 
{
	if ((document.getElementById("citemname").value == "") || (document.getElementById("csort").value == ""))
	{
		document.getElementById("error_message").innerHTML="<?php echo $this->lang->line('email_error'); ?>";
		return 0;
	}
	else
	{
		return 1;
	}
}
</script>
